/**
 * @author Aaron
 * @createTime 17:41 2022/6/23
 **/
package models_live

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type LiveNotice struct {
	Id              uint      `json:"id"`
	Type            uint8     `json:"type"`
	AnchorId        uint      `json:"anchor_id" gorm:"column:anchorid" `
	Content         string    `json:"content"`
	ManagerId       uint      `json:"manager_id"`
	CreateTime      time.Time `json:"create_time"`
	ContactName1    string    `json:"contact_name_1" gorm:"column:contact_name_1" `
	ContactAddress1 string    `json:"contact_address_1" gorm:"column:contact_address_1" `
	ContactName2    string    `json:"contact_name_2" gorm:"column:contact_name_2" `
	ContactAddress2 string    `json:"contact_address_2" gorm:"column:contact_address_2" `
	ContactName3    string    `json:"contact_name_3" gorm:"column:contact_name_3" `
	ContactAddress3 string    `json:"contact_address_3" gorm:"column:contact_address_3" `
	MainContent     string    `json:"main_content" gorm:"column:main_content"`
}

func (LiveNotice) TableName() string {
	return fmt.Sprintf("%slive_notice", models.Prefix)
}
